package com.ewzj.bigdata.mvp.model.entity.resbean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Author:zhangjing
 * Time:2018/3/12  下午4:35
 * Name: this is UserBean
 * Email:zhangjingworkmol@163.com
 */

public class UserBean implements Parcelable {


    /**
     * id : 20
     * avatar : null
     * nickname : null
     * email : null
     * gender : null
     * city_name : 0
     * city_id : 0
     * mobile : 13500000000
     * token : bf62a805-68c9-4171-bb09-6e2d02d58a25
     * imei : null
     */

    private int id;
    private String avatar;
    private String nickname;
    private String email;
    private String gender;
    private String city_name;
    private int city_id;
    private String mobile;
    private String token;
    private String imei;
    private String sign;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getCity_name() {
        return city_name;
    }

    public void setCity_name(String city_name) {
        this.city_name = city_name;
    }

    public int getCity_id() {
        return city_id;
    }

    public void setCity_id(int city_id) {
        this.city_id = city_id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public UserBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.avatar);
        dest.writeString(this.nickname);
        dest.writeString(this.email);
        dest.writeString(this.gender);
        dest.writeString(this.city_name);
        dest.writeInt(this.city_id);
        dest.writeString(this.mobile);
        dest.writeString(this.token);
        dest.writeString(this.imei);
        dest.writeString(this.sign);
    }

    protected UserBean(Parcel in) {
        this.id = in.readInt();
        this.avatar = in.readString();
        this.nickname = in.readString();
        this.email = in.readString();
        this.gender = in.readString();
        this.city_name = in.readString();
        this.city_id = in.readInt();
        this.mobile = in.readString();
        this.token = in.readString();
        this.imei = in.readString();
        this.sign = in.readString();
    }

    public static final Creator<UserBean> CREATOR = new Creator<UserBean>() {
        @Override
        public UserBean createFromParcel(Parcel source) {
            return new UserBean(source);
        }

        @Override
        public UserBean[] newArray(int size) {
            return new UserBean[size];
        }
    };
}
